package ext.acae2.baseline.web;

import java.util.Comparator;

import wt.doc.WTDocument;
import wt.epm.EPMDocument;
import wt.method.RemoteAccess;
import wt.part.WTPart;

public class ADFUtil implements RemoteAccess {

	public static final PartNumberComparator partNumComp = new PartNumberComparator();
	public static class PartNumberComparator implements Comparator<WTPart> {
		public int compare(WTPart o1, WTPart o2) {
			return o1.getNumber().compareTo(o2.getNumber());
		}
	}
	
	public static final DocNumberComparator docNumComp = new DocNumberComparator();
    public static class DocNumberComparator implements Comparator<WTDocument> {
        public int compare(WTDocument o1, WTDocument o2) {
            return o1.getNumber().compareTo(o2.getNumber());
        }
    }

    public static final EpmDocNumberComparator epmDocNumComp = new EpmDocNumberComparator();
    public static class EpmDocNumberComparator implements Comparator<EPMDocument> {
        public int compare(EPMDocument o1, EPMDocument o2) {
            return o1.getNumber().compareTo(o2.getNumber());
        }
    }
	
}
